package com.zhl.operator;

public class OperatorDemo4 {
    public static void main(String[] args) {
        // 目标：掌握关系运算符的基本使用
        int a = 10;
        int b = 5;
        boolean rs  = a > b; // true
        System.out.println(rs);

        System.out.println(a >= b); // true
        System.out.println(a < b); // false
        System.out.println(a <= b); // false
        System.out.println(a == b); // false
        System.out.println(a != b); // true
        System.out.println(2 <= 2); // true

        //注意：判断是否相等 是 == 而不是 =
        System.out.println(a = b);   // 5
    }
}
